package io.geekidea.springbootplus.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.springbootplus.system.entity.SysComment;
import io.geekidea.springbootplus.system.entity.SysDepartment;
import io.geekidea.springbootplus.system.vo.SysCommentQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysCommentMapper extends BaseMapper<SysComment> {
    //通过商品id查看商品评论
    List<SysCommentQueryVo> getSysCommentByProductId(long productId);
    //写入评论
    Integer insertSysComment(SysComment sysComment);
    //通过订单id删评论
    Integer deleteSysCommentByOrderId(Integer orderId);
}
